package com.todo.user.iface.frontend.request;

import com.todo.common.common.entity.CurrentUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author zhangwenxiang
 * @date 2024/4/8 23:40
 * @description
 */
@Data
@Schema(title = "保存用户关联入参", description = "保存用户关联入参")
public class SaveUserRelationParam {

    private CurrentUser _user;

    @Schema(title = "关联用户id", description = "关联用户id")
    private Long relationUserId;
    /**
     * 好友类型
     */
    @Schema(title = "好友类型", description = "好友类型")
    private Integer friendType;


    public boolean checkParam() {
        if (relationUserId == null || relationUserId <= 0 || friendType == null) {
            return false;
        }
        return true;
    }
}
